package com.chengyu.core.service.homeFloor;

import com.chengyu.core.entity.CommonResult;
import com.chengyu.core.exception.ServiceException;
import com.chengyu.core.model.FloorMobilePages;
import com.chengyu.core.model.FloorMobileTemplate;
import com.chengyu.core.model.HomeConfig;
import com.chengyu.core.model.UmsMember;

import java.util.List;

/**
 * @title  装修商城
 * @author LeGreen
 * @date   2022/6/13
 */
public interface HomeFloorService {

    /**
     * 获取首页配置
     * @author LeGreen
     * @date   2024/2/05
     * @param  page
     * @param  pageSize
     * @return List<FloorMobileTemplate>
     * @throws ServiceException 业务异常
     */
    List<HomeConfig> listHomeFloorConfig(Integer type,Integer page, Integer pageSize) throws ServiceException;
    /**
     * 修改或添加
     * @author LeGreen
     * @date   2024/2/05
     * @return List<FloorMobileTemplate>
     * @throws ServiceException 业务异常
     */
    CommonResult<String> editUpdate(HomeConfig homeConfig) throws ServiceException;
    /**
     * 删除
     * @author LeGreen
     * @date   2024/2/05
     * @return List<FloorMobileTemplate>
     * @throws ServiceException 业务异常
     */
    CommonResult<String> del(Integer id) throws ServiceException;
}
